package 补充.泛型;

public class TestMyGeneric {
    public static void main(String[] args) {
       Pool<Integer> pool =new Pool<Integer>();
       pool.setVariable(new Integer(3));
       Integer b=pool.getVariable();
       System.out.println(b);
    }
}
class Pool<T>{
    T Variable;

    public T getVariable() {
        return Variable;
    }

    public void setVariable(T variable) {
        Variable = variable;
    }
}